package Domain;

import java.util.Date;

public class Orders {
    private int id;
    private String username;//下单用户名
    private String productname;//商品名
    private String payment;//付款方式
    private String tel;//订单收货电话
    private String address;//收货地址
    private Date ordertime;//下单时间
    private double ordersum;//订单总金额
    private String orderstatus;//订单目前的状态
    private int payid;//支付方式id
    private int productid;//订单所对应商品的id
    private int userid;//下单用户的id

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public double getOrdersum() {
        return ordersum;
    }

    public void setOrdersum(double ordersum) {
        this.ordersum = ordersum;
    }

    public String getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(String orderstatus) {
        this.orderstatus = orderstatus;
    }

    public int getPayid() {
        return payid;
    }

    public void setPayid(int payid) {
        this.payid = payid;
    }

    public int getProductid() {
        return productid;
    }

    public void setProductid(int productid) {
        this.productid = productid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", productname='" + productname + '\'' +
                ", payment='" + payment + '\'' +
                ", tel='" + tel + '\'' +
                ", address='" + address + '\'' +
                ", ordertime=" + ordertime +
                ", ordersum=" + ordersum +
                ", orderstatus='" + orderstatus + '\'' +
                ", payid=" + payid +
                ", productid=" + productid +
                ", userid=" + userid +
                '}';
    }
}
